package com.allwees.bs.c.module.order.req;

import com.allwees.bs.core.modelbase.constant.ErrorMessage;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
public class OrderApplyRefundReq {

    //订单uuid
    @NotEmpty(message = ErrorMessage.PARAM_NOT_NULL)
    private String orderUuid;

    //订单item uuid
    @NotEmpty(message = ErrorMessage.PARAM_NOT_NULL)
    private String orderItemUuid;

    //流转步骤的原因
    @Range(max = 32, message = ErrorMessage.PARAM_RANGE_ERROR)
    private Integer type;

    //流转步骤的原因
    @Range(max = 32, message = ErrorMessage.PARAM_RANGE_ERROR)
    private Integer reason;

    //流转步骤的备注
    @Length(max = 2048, message = ErrorMessage.PARAM_LENGTH_ERROR)
    private String remarks;

    //流转步骤的图片
    @Size(max = 8, message = ErrorMessage.PARAM_LENGTH_ERROR)
    private String[] photos;

    //收货状态，退款时使用
    @Range(max = 3, message = ErrorMessage.PARAM_RANGE_ERROR)
    private Integer shippingState;
}
